﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.DAO;
using Com.CMS263.PO;

namespace Com.CMS263.BLL
{
    public  class JobsBLL
    {
        JobsDAO ddo = new JobsDAO();
        public bool Add(Jobs Jobs)
        {
            return ddo.Add(Jobs);
        }
        public Jobs GetJobsById(int id)
        {
            return ddo.GetJobsById(id);
        }
        public IList<Jobs> GetAllJobs()
        {
            return ddo.GetAllJobs();
        }
        public bool ModifyJobs(Jobs Jobs)
        {
            return ddo.ModifyJobs(Jobs);
        }
        public bool DeleteJobsById(int id)
        {
            return ddo.DeleteJobsById(id);
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool DeleteJobsByIds(string ids)
        {
            return ddo.DeleteJobsByIds(ids);
        }
        public int GetTotal(int type)
        {

            return ddo.GetTotal(type);

        }
        public IList<Jobs> GetJobsPaging(int pageSize, int currentIndex,int type)
        {
            return ddo.GetJobsPaging(pageSize, currentIndex,type);
        }
    }
}
